﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MineSweeperChallenge
{
    public abstract class GameRunnerCreator
    {
        public abstract IGameRunner Create();

        public string Name { get; set; }
    }

    public class GameRunnerCreator<G> : GameRunnerCreator where G : IGameRunner, new()
    {
        public override IGameRunner Create()
        {
            return new G();
        }
    }
}
